| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React, {Component} from 'react'; |
||
| 14 | |||
| 15 | componentDidMount() { |
||
| 16 | // console.log(this.props); |
||
| 17 | fetch("https://me-api.listrom.me/reports/week/" + this.props.match.params.number) |
||
| 18 | .then(response => response.json()) |
||
| 19 | .then(data => { |
||
| 20 | this.setState({ data: data.data.text}); |
||
| 21 | // console.log(this.state.data); |
||
| 54 | export default Report; |